import { FunctionResult } from '../../../../types'
import { BaseResponse } from "../server/response/BaseResponse";

export class FunctionResultImpl extends BaseResponse implements FunctionResult {
  private responseBody: any = undefined;

  constructResponse(response: any): void {
    this.responseBody = response;
  }

  getValue(): any {
    if (this.responseBody) {
      return this.responseBody;
    }
    return null;
  }
}